//
//  ByNetJobModel.m
//  jmsfhz_ios
//
//  Created by pro on 16/8/3.
//  Copyright © 2016年 pro. All rights reserved.
//

#import "ByNetJobModel.h"


@implementation ByNetJobModel

- (void)setAttributes:(NSDictionary *)jsonDic {
    
    [super setAttributes:jsonDic];
    
    NSMutableArray *temp = [[NSMutableArray alloc] init];
    for (NSDictionary *dic in jsonDic[@"result"]) {
        ByNetJobItemModel *item = [[ByNetJobItemModel alloc] initContentWithDic:dic];
        [temp addObject:item];
    }
    self.results = [temp copy];
}

@end


@implementation ByNetJobItemModel

- (void)setAttributes:(NSDictionary *)jsonDic {
    
    [super setAttributes:jsonDic];
    
    self.create_time = [NSDate getDateForStringFotmatWithTimeInterval:[jsonDic[@"create_time"] doubleValue] formatter:@"yyyy-MM-dd HH:mm"];
    self.update_time = [NSDate getDateForStringFotmatWithTimeInterval:[jsonDic[@"update_time"] doubleValue] formatter:@"yyyy-MM-dd HH:mm"];
    self.logo = [NSString stringWithFormat:@"%@?id=%@", BOYE_PICTURE_VIEW_URL, jsonDic[@"logo"]];
    self.employ_logo = [NSString stringWithFormat:@"%@?id=%@", BOYE_PICTURE_VIEW_URL, jsonDic[@"employ_logo"]];

}

@end
